package com.taotao.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.taotao.web.service.IndexService;

@Controller
public class IndexController {
	
	@Autowired
	private IndexService indexService;
	
	@RequestMapping(value="index",method=RequestMethod.GET)
	public String index(Model model){
		String bigADs = indexService.queryBigAD();
		model.addAttribute("bigADs", bigADs);
		return "index" ;
	}
}
